import { id } from 'element-plus/es/locale';
import request from '/@/utils/request';

/**
 * 
 * 用户钱包流水列表http://123.160.10.252:8818/api/v1/ucenter/wallet/logs
**/
export function apiUserwalletflow(query:Object) {
    return request({
        url: '/api/v1/ucenter/wallet/logs',
        method: 'get',
        params:query
    }) 
}
/**
 * 
 * 删除会员等级http://123.160.10.252:8818/api/v1/ucenter/config/vip/{id}
**/
export function apideletelevelList(id:Object) {
    return request({
        url: '/api/v1/ucenter/config/vip/'+id,
        method: 'delete',
        data:{}
    })
}
/**
 * 
 * 添加会员等级http://123.160.10.252:8818/api/v1/ucenter/config/vip
**/
export function apiaddlevelList(data:object) {
    return request({
        url: '/api/v1/ucenter/config/vip',
        method: 'post',
        data:data
    })
}

/**
 * 
 * 修改查询会员等级列表
**/
export function apieditlevelList(data:Object,id:Number) {
    return request({
        url: '/api/v1/ucenter/config/vip/'+ id,
        method: 'put', 
        data:data
    })
}

/**
 * 
 * 上传会员等级图片http://127.0.0.1:8808/api/v1/system/upload/upImgs' \
**/
export function apiaddPictures(data:object) {
    return request({
        url: '/api/v1/system/upload/upImg',
        method: 'post',
        data:data
    })
}



